package com.chaobl.goods.catalog.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品分类
 * </p>
 *
 * @author jobob
 * @since 2020-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Catalog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    Integer id;
    /**

    /**
     * 商品分类名称
     */
    private String catalog;

    /**
     * 商品分类图
     */
    @TableField("mainPicture")
    private String mainPicture;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("updateTime")
    private LocalDateTime updateTime;

    /**
     * 所属的大分类
     */
    private String type;

    /**
     * 父级id
     */
    private Integer pid;

    /**
     * 门店id
     */
    private Integer shopid;

    /**
     * 显示顺序
     */
    private Integer sequence;

    /**
     * 企业id
     */
    @TableField("enterpriseId")
    private Integer enterpriseId;


}
